﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace SystemHYS.Infrstructre
{
    public interface IRepository<T> where T : class,new()
    {
        Task<int> AddAsyn(T entity);
        Task<int> UpdateAsyn(T entity);
        Task<int> DeleteAsyn(T entity);
        Task<T> GetModelAsnc(int id);
        Task<List<T>> GetAllAsnc();
        Task<List<T>> GetAsnc(Expression<Func<T, bool>> predicate);
    }
}
